﻿<%@ Page Language="C#" MasterPageFile="~/students/masterpage.Master" AutoEventWireup="true" CodeBehind="SFeedback.aspx.cs" Inherits="ESCHOOL.students.WebForm5" Title="Student Feedback" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 100%;
            font-weight: bold;
        }
        .style4
        {
            text-decoration: underline;
            text-align: center;
        }
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
        <table class="style3">
            <tr>
                <td class="style4">
                    Feedback
                </td>
            </tr>
    </table>
        <table class="style1">
            <tr>
                <td>
                    <asp:Panel ID="Panel1" runat="server">
                        <table class="style1">
                            <tr>
                                <td>
                                    To Teacher</td>
                                <td>
                                    <asp:DropDownList ID="DropDownList1" runat="server" 
                                       >
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Feedback Message</td>
                                <td>
                                    <asp:TextBox ID="tbmsg" runat="server" TextMode="MultiLine"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ErrorMessage="Enter your message" ControlToValidate="tbmsg"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnsend" runat="server" onclick="btnsend_Click" Text="Send" />
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <br />
                    <br />
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        Width="285px" AllowPaging="True" 
                        onpageindexchanging="GridView1_PageIndexChanging" AllowSorting="True">
                        <Columns>
                            <asp:BoundField DataField="teacher_name" HeaderText="Teacher Name" />
                            <asp:BoundField DataField="feedback" HeaderText="Feedback" />
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            </table>
    </p>
    <p>
    </p>
</asp:Content>
